-- GENERATED SPELL FOR [Lashh'an Windwalker] --


function spell0_19945(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19945', 3000, 1)
end

function spell1_19945(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19945', 0, 1)
end

function Sorts_19945(pUnit, Event)
local choix_sorts_19945 = math.random(0, 1)
if choix_sorts_19945 == 0 then
pUnit:RegisterEvent('spell0_19945', 1, 1)
end
if choix_sorts_19945 == 1 then
pUnit:RegisterEvent('spell1_19945', 1, 1)
end
end

function mob19945_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19945', math.random(1500, 3000), 1)
end

function mob19945_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19945_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19945_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19945, 1, 'mob19945_Action')
RegisterUnitEvent(19945, 2, 'mob19945_Leave')
RegisterUnitEvent(19945, 3, 'mob19945_Kill')
RegisterUnitEvent(19945, 4, 'mob19945_Die')
